<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javascript" src="system/js/json2.js"></script>
<script type="text/javascript" language="javascript" src="system/js/NewDatePicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="system/js/verify1.js"></script>
<script type="text/javascript" language="javascript" src="system/js/ticket/ticket_distributing.js"></script>
</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 分发税票</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table">
			<form id="form1" action="system/ticket/ticket_distributing_save.do" method="post">
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">用票人：</td>
						<td class="form_button" >
							<mytag:List name="ListUser" table="User">userSwitch = 1</mytag:List>
							<select name="yprDm" id="yprDm" onchange="findMyTickets(this.value)" class="required">
								<option value="">---请选择---</option>
								<logic:iterate id="user" name="ListUser">
									<option value="${user.userIdentifier }" >${user.userAccount }</option>
								</logic:iterate>
							</select>
							<span style="color: red;">*</span>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<table id="myTicketsList" width="100%" border="0" cellpadding="1" cellspacing="1" class="table_list">
							<tr>
								<th>序号</th>
								<th>票证类别</th>
								<th>状态</th>
								<th>字别</th>
								<th>起始号码</th>
								<th>终止号码</th>
								<th>数量</th>
							</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td colspan="2">&nbsp;</td>
					<tr>
				</table>
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr>
						<td colspan="4">分发税票</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">票证类别：</td>
						<td>
							<mytag:List name="Listpzzl" table="TDmCcsPzzl">xyBj='y' or xyBj='Y'</mytag:List>
							<select name="pzzlDm" id="pzzlDm" class="required" onchange="findTicketsByPzzlDm('system/ticket/ticket_distributing_fbt.do',this)" >
								<option value="">---请选择---</option>
								<logic:iterate id="pzzl" name="Listpzzl">
									<option value="${pzzl.pzzlDm }" >${pzzl.pzzlMc }</option>
								</logic:iterate>
							</select>
							<span style="color: red;">*</span>
						</td>
						<td align="right">字别：</td>
						<td><input name="zb" id="zb" onblur="" /><span style="color: red;">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">起始号码：</td>
						<td>
							<input name="sphmQ" id="sphmQ" onblur="SetSphmZ(sphmQ,sl,sphmZ)" />
							<span style="color: red;">*</span>
						</td>
						<td align="right">终止号码：</td>
						<td><input name="sphmZ" id="sphmZ" readonly="readonly" /></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">数量：</td>
						<td>
							<input name="sl" id="sl" onkeypress="onlydigit(this)" onblur="SetSphmZ(sphmQ,sl,sphmZ)" />
							<span style="color: red;">*</span>
						</td>
						<td class="form_button" colspan="2">
							<input id="btnAdd" type="button" value="添加" onclick="findTicketsByPzzlDm('system/ticket/ticket_distributing_fbt.do',pzzlDm);AddSignRow(yprDm,pzzlDm,zb,sphmQ,sphmZ,sl)">
							<input type='hidden' name='txtTRLastIndex' id='txtTRLastIndex' value="1" />
						</td>
					</tr>
					<tr>
						<td colspan="4">
							<table id="tableTicketList" width="100%" border="0" cellpadding="1" cellspacing="1" class="table_list">
								<tr>
									<th>序号</th>
									<th>票证类别</th>
									<th>字别</th>
									<th>起始号码</th>
									<th>终止号码</th>
									<th>数量</th>
									<th>操作</th>
								</tr>
							</table>
							<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_list">
								<tr>
									<td class="form_button">
										<input id="btnSave" type="submit" value="分发" disabled="disabled">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
</body>
</html>
